<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function sacar($string)
{
        //$string = str_replace("a","o",$string);
	$string = str_replace("ó","o",$string);
	$string = str_replace("ñ","n",$string);
	$string = str_replace("Ñ","N",$string);
	return $string;
}
function ContruirHTML($contenido,$titulo,$resumen)
{
    $salida_xml .= "<html>\n";
    $salida_xml .= "<head>\n";
    $salida_xml .= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n";
    $salida_xml .= "<title>\n";
    $salida_xml .= "".$titulo." - Social CRM\n";
    $salida_xml .= "</title>\n";
    $salida_xml .= "<meta name=\"Autor\" lang=\"es\" content=\"Luis Alberto Baigorria Rodas\">\n";
    $salida_xml .= "<meta name=\"Description\" content=\"";
    $salida_xml .= "$resumen";
    $salida_xml .= "\">\n";
    $salida_xml .= "</head>\n";
    $salida_xml .= "<body>\n";
    //$salida_xml .= "<center>\n";
    $salida_xml .= "$contenido";
    //$salida_xml .= "</center>\n";
    $salida_xml .= "</body>\n";
    $salida_xml .= "</html>\n";
    return $salida_xml;
}
?>
